package com.itheima.visitor.dispatch.double_dispatch;

/**
 * @author zzw
 * @date 2025/10/26
 * @description 双分派
 */
public class Cat extends Animal {
    @Override
    public void accept(Execute execute) {
        execute.execute(this);
    }
}
